﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Default.Master" AutoEventWireup="true"
    CodeBehind="ServiceDetail.aspx.cs" Inherits="AUV5.Web.Pages.ServiceDetail" EnableViewState="true" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="UCService.ascx" TagName="UCService" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/!js/service_detail.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="sellerbar">
        <div class="avatarbar">
            <p>
                <asp:Image ID="imgSeller" runat="server" />
            </p>
            <p>
                <asp:HyperLink ID="lbtnContract" runat="server">联系我</asp:HyperLink>
            </p>
        </div>
        <div class="sellerinfobar">
            <p class="sellername">
                <%--<asp:LinkButton ID="lbtnSellerUserName" runat="server"></asp:LinkButton>--%>
                <a href="<%=sellerUrl %>">
                    <%=sellerName %></a>
            </p>
            <p class="sellerinfo">
                <span>
                    <asp:Image ID="imgUserLevel" runat="server" /></span> <span class="praise">好评率：<asp:Label
                        ID="lblReceivedRateSum" runat="server" Text=""></asp:Label></span> <span>性别：<asp:Label
                            ID="lbGender" Text="" runat="server" /></span> <span>所在地:
                                <asp:Label ID="lbAddress" Text="" runat="server" />
                            </span>
            </p>
            <p class="sellerinfo">
                <span>加入时间：<asp:Label ID="lblUserJoin" runat="server" Text=""></asp:Label></span>
                <span>最后登录:
                    <asp:Label ID="lblLastLogTime" runat="server" Text=""></asp:Label></span>
            </p>
            <p class="sellersignature">
                <asp:Label ID="lblDesc" runat="server" Text=""></asp:Label>
            </p>
        </div>
        <p class="clear">
        </p>
    </div>
    <uc1:UCService ID="UCService1" runat="server" />
    <p class="clear">
    </p>
    <asp:Panel ID="pnlFeedBack" runat="server">
        <p class="buyersreview">
            买家的评论
        </p>
        <div class="buyersreviewbg">
            <div class="buyersreviewbar">
                <div class="buyersreviewlist">
                    <ul>
                        <asp:Repeater ID="rpFeedBack" runat="server" OnItemDataBound="rpFeedBack_DataBound">
                            <ItemTemplate>
                                <li>
                                    <p class="reviewername">
                                        <asp:Label ID="lblId" runat="server" Visible="false" Text="<%# (Container.DataItem as AUV5.Model.FeedBack).FeedBackID %>"></asp:Label>
                                        <asp:LinkButton ID="lbtnFbUserName" runat="server">LinkButton</asp:LinkButton></p>
                                    <div class="reviewinfobar">
                                        <p class="icon">
                                            <asp:Image ID="imgFbIsGood" runat="server" /></p>
                                        <p class="reviewwid1">
                                            <%# (Container.DataItem as AUV5.Model.FeedBack).Content %></p>
                                    </div>
                                    <p class="reviewtime">
                                        <asp:Label ID="lblFbTime" runat="server" Text=""></asp:Label></p>
                                    <asp:Panel ID="pnlReply" runat="server">
                                        <ul>
                                            <li>
                                                <p class="icon_replytop">
                                                    <img src="/!images/icon_replytop.jpg" /></p>
                                                <div class="replyseller">
                                                    <p class="replysellertxt">
                                                        卖家回复</p>
                                                    <p class="replysellerinfo">
                                                        <%# (Container.DataItem as AUV5.Model.FeedBack).Reply %></p>
                                                    <p class="replytime">
                                                        <asp:Label ID="lblReplyTime" runat="server" Text="Label"></asp:Label></p>
                                                    <p class="clear">
                                                    </p>
                                                </div>
                                            </li>
                                        </ul>
                                    </asp:Panel>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="pages">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                            CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" PageIndexBoxType="DropDownList"
                            PagingButtonLayoutType="Span" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                            TextBeforePageIndexBox="转到" PageSize="10" PagingButtonSpacing="" CurrentPageButtonClass="currentpage"
                            ButtonImageExtension=".jpg" ImagePath="/!images/" ShowPageIndexBox="Never" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <p class="clear">
    </p>
    <div class="servicebar">
        <div class="fl servicehelf">
            <p class="buyersreview">
                该用户的其它AUV</p>
            <div class="servicelist">
                <ul>
                    <asp:Repeater ID="repUserRelated" runat="server">
                        <ItemTemplate>
                            <li>
                                <p class="serviceimg">
                                    <a href="/service/<%# (Container.DataItem as AUV5.Model.ServiceInfo).Title %>">
                                        <img src="<%# AUV5.BLL.ServiceAttachmentBLL.Instance.GetLastImage((Container.DataItem as AUV5.Model.ServiceInfo).ServiceID) %>"
                                            alt="" /></a></p>
                                <p class="servicetxt">
                                    <a href="/service/<%# (Container.DataItem as AUV5.Model.ServiceInfo).Title %>">
                                        我可以<%#(Container.DataItem as AUV5.Model.ServiceInfo).Title%>只需<%#(Container.DataItem as AUV5.Model.ServiceInfo).Price.ToString("0")%>元</a></p>
                                <span class="clear block"></span></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
        <div class="fr servicehelf">
            <p class="buyersreview">
                相似的AUV</p>
            <div class="servicelist">
                <ul>
                    <asp:Repeater ID="repKeyRelated" runat="server">
                        <ItemTemplate>
                            <li>
                                <p class="serviceimg">
                                    <a href="/service/<%# (Container.DataItem as AUV5.Model.ServiceInfo).Title %>">
                                        <img src="<%# AUV5.BLL.ServiceAttachmentBLL.Instance.GetLastImage((Container.DataItem as AUV5.Model.ServiceInfo).ServiceID) %>"
                                            alt="" /></a></p>
                                <p class="servicetxt">
                                    <a href="/service/<%# (Container.DataItem as AUV5.Model.ServiceInfo).Title%>">
                                        我可以<%#(Container.DataItem as AUV5.Model.ServiceInfo).Title%>只需<%#(Container.DataItem as AUV5.Model.ServiceInfo).Price.ToString("0")%>元</a></p>
                                <span class="clear block"></span></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
    </div>
</asp:Content>
